/**
 * PwdValidator.java 
 * Copyright © 2015-3015, 杭州泊享网络科技有限公司
 * 
 * @author Liu Tao
 * @create 2015年5月22日
 */
package com.pshare.framework.validator;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;

import org.apache.commons.lang3.StringUtils;

import com.pshare.constant.ReturnMsg;
import com.pshare.framework.annotation.NotEmptyCheck;

/**
 * 密码格式验证
 */
public class NotEmptyValidator implements ConstraintValidator<NotEmptyCheck, CharSequence> {

	@Override
	public void initialize(NotEmptyCheck constraintAnnotation) {

	}

	@Override
	public boolean isValid(CharSequence object, ConstraintValidatorContext constraintContext) {
		if(StringUtils.isBlank(object))
			return false;
		
        return true;
	}

}
